package com.sanbi.erp.db.util;

import java.sql.SQLOutput;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * 校验工具包
 * XYP
 */
public class CheckoutUtil {

    // 通用type
    public static final Integer TYPE_ZERO = 0;
    public static final Integer TYPE_ONE = 1;
    public static final Integer TYPE_TWO = 2;

    // 校验数字类型
    public static boolean isEmptyInteger(Integer number){
        return number == null || number == 0;
    }

    // 校验字符类型
    public static boolean isEmptyString(CharSequence value){
        return value == null || value.length() == 0 || value.equals("");
    }

}
